Skip to content

feat(opencode): Switching agents considers the agent's configured model variant#25363

Open
lowlyocean wants to merge 1 commit intoanomalyco:devfrom
lowlyocean:agent-tracking-variants
Open

feat(opencode): Switching agents considers the agent's configured model variant#25363
lowlyocean wants to merge 1 commit intoanomalyco:devfrom
lowlyocean:agent-tracking-variants

Conversation

@lowlyocean
Copy link
Copy Markdown

@lowlyocean lowlyocean commented May 1, 2026

Issue for this PR

Closes #23995

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

When configuring a variant for each agent in opencode.json, make it so that switching agents will load the agent's variant. Right now, if you switch agents it won't actually change the variant.

How did you verify your code works?

Ran the local version of opencode with the changes, confirmed that tabbing between agents also caused the variant to change. Then tested to make sure the variant's settings were being applied as expected

Screenshots / recordings

N/A

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. needs:title labels May 1, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 1, 2026

Hey! Your PR title Switching agents considers the agent's configured model variant doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@lowlyocean lowlyocean changed the title Switching agents considers the agent's configured model variant feat(opencode): Switching agents considers the agent's configured model variant May 1, 2026
@github-actions github-actions Bot removed needs:title needs:compliance This means the issue will auto-close after 2 hours. labels May 1, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 1, 2026

Thanks for updating your PR! It now meets our contributing guidelines. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How to modify Plan and Build agents to pass chat_template_kwargs?

1 participant